package com.hifar.test.test.pojo.VO;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author zhuWeiWei
 * @description 试验完成VO
 * @date 2024/12/24 10:05
 */
@Data
@EqualsAndHashCode
@ApiModel("试验完成VO")
public class HfEnvTestFinishVO {
    @NotBlank(message = "id不能为空!")
    private String id;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotNull(message = "结束时间不能为空!")
    private Date realEndTime;

    @ApiModelProperty("备注")
    private String remarks;

    @ApiModelProperty("试验费用")
//    @NotNull(message = "试验费用不能为空!")
    private BigDecimal testCost;

    @ApiModelProperty("单价")
//    @NotNull(message = "单价不能为空!")
    private BigDecimal unitPrice;
    @ApiModelProperty("完成人id")
    private String finishUserId;
    @ApiModelProperty("完成人名称")
    private String finishUserName;

}
